
#ifndef CONFIG_H
#define CONFIG_H

#include <string>
#include <vector>


class Config
{
public:
    static Config * self();

    int read( const std::string & file );

    int maxThreads() const;
    int threadIncrement() const;
    int bbPort() const;
    int replicaPort() const;
    std::vector<std::string> peers() const;
    bool useSyslog() const;
    std::string logFile() const;

private:
    static Config * instance;

    Config();

    int m_maxThreads;
    int m_threadIncrement;
    int m_bbPort;
    int m_replicaPort;
    std::vector<std::string> m_peers;
    bool m_useSyslog;
    std::string m_logFile;
};

#endif
